import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s1 = in.nextLine();
        String s2 = in.nextLine();

        int[] hash = new int[26];
        for(int i = 0; i < s1.length(); i++) {
            char ch = s1.charAt(i);
            int index = ch - 'A';
            hash[index]++;
        }

        boolean flag = true;
        for(int i = 0; i < s2.length(); i++) {
            char ch = s2.charAt(i);
            int index = ch - 'A';
            if(hash[index] != 0) {
                hash[index]--;
            }else {
                flag = false;
                break;
            }
        }

        if(flag) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    }
}